//main: ../rui.less


.rSwc {
    position:relative;
    width:37px;
    height:16px;
    overflow:hidden;
    cursor:pointer;
	margin-top: 2px;
}
.rSwc .overlay {
    position:absolute;
    top:0;
    left:0;
    width:37px;
    height:16px;
    background:url('img/switch/overlay.png') no-repeat 0 0;
    z-index:9;
}
.rSwc span.switched {
    display:block;
    position:absolute;
    top:0;
    left:0;
    width:58px;
    height:16px;
    background:#d9d9d9 url('img/switch/switch.gif') no-repeat 0 0;
    z-index:8;
}
.rSwc span.off {
    left:-21px;
}
.rSwc input {
    display:none;
}

.formTable .rSwc {
    margin-top: 9px;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
    .rSwc .overlay {
        background:url('img/switch/overlay@2x.png') no-repeat 0 0;
        background-size:37px 16px;
    }
    .rSwc span.switched {
        background:url('img/switch/switch@2x.gif') no-repeat 0 0;
        background-size:58px 16px;
    }
}

/* IE PNG Overlay Fix */
.ie6 .rSwc .overlay {
    background:none;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./overlay.png', sizingMethod='crop');
}